import ajax from "../common/fui-request.js"



export const ReportApi = {
	/**
	 * 根据科室ID查询科室IP列表
	 */
	deptIdGetIpList: (deptId) => ajax.get('system/ipAddress/getIpAddressByDeptId', {
		data: {
			deptId
		}
	}),
	/**
	 * 新增科室IP
	 */
	addDeptIp: (data) => ajax.post('system/ipAddress/sysBatchAdd', {
		data
	}),
	/**
	 * 创建工单
	 */
	createWorkOrder: (data) => ajax.post('/wechat/obstacles/report/addOrder', {
		data
	}),
	/**
	 * 标题和助记简拼查询知识库列表
	 */
	getKnowledgeList: (keyword) => ajax.post('/knowledge/knowledge/getListByKeyword', {
		data: {

			data: keyword
		}
	}),
	/**
	 * 科室详情
	 */
	getDeptDetail: (deptId) => ajax.get(`/system/dept/${deptId}`, {})

}